package com.medusa.gruul.payment.service.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.gruul.common.system.model.model.Platform;
import com.medusa.gruul.payment.api.entity.PaymentMerchantConfig;
import com.medusa.gruul.common.model.enums.PayType;
import com.medusa.gruul.payment.service.model.vo.MerchantDetailsVO;

import java.util.List;

/**
 *
 *
 *
 *
 * @author xiaoq
 * @ Description
 * @date 2022-07-18 09:27
 */
public interface IPaymentMerchantConfigService extends IService<PaymentMerchantConfig> {
    /**
     * 获取商户配置 by payType
     *
     * @param payType 支付渠道
     * @return List<支付商户渠道配置VO>
     */
    List<MerchantDetailsVO> getMerchantDetail(PayType payType);

    /**
     *  获取商户配置 by Platform
     *
     * @param payType  支付渠道
     * @param payPlatform 关联平台
     * @return 支付商户渠道配置VO
     */
    MerchantDetailsVO getMerchantDetailByPlatform(PayType payType,Platform payPlatform);
}
